﻿
using Markdig;
using Markdig.SyntaxHighlighting;

using Microsoft.AspNetCore.Components;

namespace Bootstrap5.Shared
{
    public class MD
    {
        public static MarkupString Write(string value)
        {
            var pipeline = new MarkdownPipelineBuilder()
    .UseAdvancedExtensions()
    .UseSyntaxHighlighting()
    .Build();
            return new MarkupString(Markdown.ToHtml(value, pipeline));

        }
    }
}
